package com.jinzheng.qianhai.exception;

/**
 * 异常捕捉
 */
public class ErrorException extends RuntimeException {
    protected String errorCode;
    protected int code;

    public ErrorException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ErrorException(int code, String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }

    public String getErrorCode() {
        return this.errorCode;
    }
}
